<?php
get_header();
?>

<?php 
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name); // NOTE: 2.0 bug requires get_userdatabylogin(get_the_author_login());
else :
$curauth = get_userdata(intval($author));
endif;
?>

<div class="posttotal">	


<div class="storycornerwrap2">
<div class="storycornerleft2">
</div><!-- end storycornerleft -->
<div class="storycornercontent2">
</div><!-- end storycornercontent -->
<div class="storycornerright">
</div><!-- end storycornerright -->
</div><!-- end storycornerwrap -->


<div class="storywrap2">


         <h3 class="storytitle">Author: <?php echo $curauth->nickname; ?></h3>

        <div class="storycontent">
               <dl>
               <?php echo get_avatar($curauth->user_email, '96', $avatar); ?><p><?php echo $curauth->user_description; ?></p>

<dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
</dl>

<h3>Posts by <?php echo $curauth->nickname; ?>:</h3>

<ul>
<!-- The Loop -->
<div class="postlist">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  <li>
  
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
<?php the_title(); ?></a>, 
<?php the_time('M d Y'); ?> in <?php the_category(' &');?>
  </li>

  <?php endwhile; else: ?>
     <p><?php _e('No posts by this author.'); ?></p>

	<?php endif; ?>
	</div>

        </div><!-- end storycontent -->

        <!-- end meta -->


<?php comments_template(); ?>

     </div><!-- end storywrap -->
<div class="storycornerwrapbottom2">
<div class="storycornerleftbottom">
</div><!-- end storycornerleftbottom -->
<div class="storycornercontentbottom2">
</div><!-- end storycornercontentbottom -->
<div class="storycornerrightbottom">
</div><!-- end storycornerrightbottom -->
</div><!-- end storyornerwrap -->

</div><!-- end posttotal -->



<?php get_footer(); ?>